<?php
/**
 * User: MT
 * Date: 2018/5/24 0024
 */
namespace app\controller;
use app\model\UserModel;
use core\core;
class ModelController extends core {
    public function add(){
        $model = new UserModel();
        $id = $model->add(['user_name'=>'mt','password'=>'123456']);
        dump($id);
    }
    public function delete(){
        $model = new UserModel();
        $model->del(2);
    }
    public function upd(){
        pp(111);exit;
        $model = new UserModel();
        $model->upd(['user_name'=>'mlt'],1);
    }
    public function sel(){
        $model = new UserModel();
        $model->select();
    }
}